package com.qzxl.conntext;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.context.annotation.Configuration;
import org.springframework.kafka.annotation.KafkaListener;

/**
 * @Auther: jintianyun
 * @Date: 2020/12/24 15:45
 * @Description:
 */
@Configuration
public class er {
    //@KafkaListener(topicPattern = "sys.Experiment.subdevice.register.request")
    public void equipmentRegisterResponse(ConsumerRecord record) {
        System.out.println(record.value());
    }

    //@KafkaListener(topicPattern = "sys.Experiment.thing.serviceid.property.post")
    public void equipmentRegisterRes2ponse(ConsumerRecord record) {
        System.out.println("监听收到！！！！！！！！！！！！！！！！！！！！！！");
        System.out.println(record.value());
    }
}
